<?php

class Core_Frontend_Component_Search_View_Result_List extends Core_Frontend_Share_View_List {

    public function render(){
        $this->setTemplatePath($this->getType());
        $this->getTemplate()->assign('tag', urlencode($this->getTag()))
                            ->assign('stat', $this->getStat())
                            ->assign('list', $this->getList())
                            ->assign('search_type', $this->getType());
        return parent::render();
    }

    protected function buildPagination($pagination) {
        parent::buildPagination($pagination);
        return $this->getUrl(array_merge( $this->getRequest()->getAllParameters(), array('page' => '{index}')), 'list');
        $url = $this->getPaginationUrl();
        $pagination->setUrlFormat($url)->setRecordCount($this->getRecords());
    }
}